import request from '~/utils/request';
export function SaveBankInfo(data) {
    //银行保存
    return request({
        url: '/Bank/SaveBankInfo',
        method: 'POST',
        data,
    });
}
export function GetBankList(data) {
    //银行保存
    return request({
        url: '/Bank/GetBankList',
        method: 'POST',
        data,
    });
}
export function GetBankInfo(data) {
    //获取单条数据
    return request({
        url: '/Bank/GetBankInfo?BankDataID=' + data,
        method: 'GET',
        data,
    });
}
export function saveStaffInfo(data) {
    //保存单条数据
    return request({
        url: '/Bank/SaveStaffInfo',
        method: 'POST',
        data,
    });
}
export function getStaffInfo(data) {
    //获取单条数据
    return request({
        url: '/Bank/GetStaffInfo?staffid=' + data,
        method: 'get',
        data,
    });
}
export function SetBankState(data) {
    //设置银行的状态
    return request({
        url: '/Bank/SetBankState',
        method: 'POST',
        data,
    });
}
export function GetDeptTree(data) {
    //设置开银行部门
    return request({
        url: '/Bank/GetDeptTree',
        method: 'GET',
        data,
    });
}
export function GetStaffListUser(data) {
    //员工列表
    return request({
        url: '/Bank/GetStaffListUser',
        method: 'POST',
        data,
    });
}
export function SaveDeptInfo(data) {
    //保存部门
    return request({
        url: '/Bank/SaveDeptInfo',
        method: 'POST',
        data,
    });
}
export function GetDeptInfo(data) {
    //查询部门
    return request({
        url: '/Bank/GetDeptInfo?deptid=' + data,
        method: 'GET',
        data,
    });
}
export function GetDeptList(data) {
    //部门分页
    return request({
        url: '/Bank/GetDeptList',
        method: 'POST',
        data,
    });
}
export function SetDeptState(data) {
    //设置部门状态
    return request({
        url: '/Bank/SetDeptState',
        method: 'POST',
        data,
    });
}
export function getBankDeptList() {
    //获取银行的部门
    return request({
        url: '/Bank/GetDeptSelectList',
        method: 'GET',
    });
}
export function GetBankLoanPageList(data) {
    //获取贷款列表
    return request({
        url: '/Bank/GetBankLoanPageList',
        method: 'POST',
        data,
    });
}
export function SaveBankLoanInfo(data) {
    //保存贷款
    return request({
        url: '/Bank/SaveBankLoanInfo',
        method: 'POST',
        data,
    });
}
export function GetBankLoanInfo(data) {
    //获取单个贷款
    return request({
        url: '/Bank/GetBankLoanInfo?loanid=' + data,
        method: 'GET',
    });
}
export function setLoanState(data) {
    //设置贷款状态
    return request({
        url: '/Bank/SetLoanState',
        method: 'POST',
        data,
    });
}
export function getBankApplyList(data) {
    //贷款申请表 分页列表
    return request({
        url: '/Bank/GetBankApplyList',
        method: 'POST',
        data,
    });
}
export function setApplyState(data) {
    //设置贷款申请状态
    return request({
        url: '/Bank/SetApplyState',
        method: 'POST',
        data,
    });
}
export function setContractState(data) {
    //设置贷款面签状态
    return request({
        url: '/Bank/SetContractState',
        method: 'POST',
        data,
    });
}
export function setBankPayState(data) {
    //设置贷款放款状态
    return request({
        url: '/Bank/SetBankPayState',
        method: 'POST',
        data,
    });
}

export function getApplyInfo(id) {
    //设置贷款申请状态
    return request({
        url: '/Bank/GetApplyInfo?id=' + id,
        method: 'GET',
    });
}
export function getList() {
    //获取所有银行
    return request({
        url: '/Bank/GetList',
        method: 'GET',
    });
}
export function getBankProjectLstByPid(projectId) {
    //银行以营销活动关联表
    return request({
        url: '/Bank/GetBankProjectLstByPid?projectId=' + projectId,
        method: 'GET',
    });
}
export function getBankListByPlanItemId(itemId) {
    //获取银行列表 根据营销明细ID
    return request({
        url: '/Bank/GetBankListByPlanItemId?itemId=' + itemId,
        method: 'GET',
    });
}
export function getBankLoanByPlanItemId(itemId, bankId) {
    //获取金融产品列表
    return request({
        url: '/Bank/GetBankLoanByPlanItemId?itemId=' + itemId + '&&bankId=' + bankId,
        method: 'GET',
    });
}
export function getBankLoanInfo(loanid) {
    //获取金融产品详情
    return request({
        url: '/Bank/GetBankLoanInfo?loanid=' + loanid,
        method: 'GET',
    });
}

export function getApplyInfoByOrderId(orderid) {
    //获取金融产品详情
    return request({
        url: '/Bank/GetApplyInfoByOrderId?id=' + orderid,
        method: 'GET',
    });
}
//取消贷款申请 业主根据订单ID
export function setApplyStateByOrderId(data) {
    //设置贷款申请状态
    return request({
        url: '/Bank/SetApplyStateByOrderId',
        method: 'POST',
        data,
    });
}

//贷款产品列表
export function getBankLoanPageList(data) {
    //设置贷款申请状态
    return request({
        url: '/Bank/GetBankLoanPageList',
        method: 'POST',
        data,
    });
}
//贷款手续
export function getBankMaterialsList(data) {
    //设置贷款申请状态
    return request({
        url: '/Bank/GetBankMaterialsList',
        method: 'POST',
        data,
    });
}
//0首付资料id
export function getBankMaterItemByBankId(data) {
    //0首付资料id
    return request({
        url: '/Bank/GetBankMaterItemByBankId?bankId='+data,
        method: 'GET',
    });
}
//银行申请入驻
export function saveBankRegister(data) {
    return request({
        url: '/Bank/SaveBankRegister',
        method: 'POST',
        data,
    });
}
//0首付图片删除
export function updateBankFileByID(data) {
    return request({
        url: '/Bank/UpdateBankFileByID?id=' + data,
        method: 'GET',
    });
}
//上传0首付金融信息
export function saveBankApply(data) {
    return request({
        url: '/Bank/SaveBankApply',
        method: 'POST',
        data,
    });
}